package com.jt.service;

import com.jt.anno.Cache;
import org.springframework.stereotype.Service;

import javax.xml.transform.Source;

@Service
public class DeptServiceImpl implements DeptService{
    @Override
    @Cache
    public void updateDept() {
        System.out.println("更新部门信息");
    }
    @Cache
    @Override
    public void addDept() {
        System.out.println("添加部门");
    }

    @Override
    public String after(int num) {
        return "欧毕节";
    }

    @Override
    @Cache
    public void afterThrow() {
        System.out.println(1/0);
    }

    @Override
    public String doaround() {
        System.out.println("数据入库");
        return "我是偶毕节";
    }
}
